<template>
  <todo-list v-if="$route.path === EnumRouter.todoList" />
  <router-view v-else />
</template>

<script>
import TodoList from './TodoList';
import EnumRouter from '@/constants/EnumRouter';
export default {
  name: 'Index',
  components: { TodoList },
  computed: {
    EnumRouter: () => EnumRouter
  }
};
</script>

<style scoped>

</style>
